<?php
//获取top栏目
$menus = config_menus();
$uri = config_item('enable_lang')?2:1;
$segmens = $this->uri->segment($uri,'');
//获取left栏目
$leftMenus = $menus[$segmens];
$seger = $this->uri->segment($uri+1,'');
$segsan = $this->uri->segment($uri+2,'index');
//设置栏目样式
$curleft[$seger][$segsan] = 'clscur_left';
?>

<div class="left">
<?php if($leftMenus['isshow']): foreach ($leftMenus as $key=>$val): if (is_array($val)):?>
<?php if($val['isshow']):?><div class="leftMenuTitle"><?=$val['name']?></div><?php endif;?>
<div class="left2">
<ul>
	<?php foreach ($val as $k=>$v): if (is_array($v) && $v['isshow']):?>
		<li><a href="<?=blang_url($v['url']);?>" class="<?=isset($curleft[$key][$k])?$curleft[$key][$k]:''?>" ><?=$v['name']?></a></li>
	<?php endif; endforeach;?>
</ul>
</div>
<?php endif; endforeach; endif;?>
</div>
